package woqu;

import java.util.Arrays;

public class Demo04 {
    public static void main(String[] args) {
        //String str = "sa8sd6s1sd7kw04df23kds59";
        //输出的结果是1，2，3，4，5，6，7，8，9
        String str = "sa8sd6s1sd7kw04df23kds59";
        str = str.replaceAll("[a-z]","");
        System.out.println(str);
        char[] chars = str.toCharArray();
        Arrays.sort(chars);
        System.out.println(chars);
    }
}
